# coding=utf-8
import os, sys

parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
a = sys.path.insert(0, parentdir)

print(parentdir)
print(a)

a = {"id": 910, "rentPlan": {"lowestPrice": [
    {"allPeriod": 88248, "period": 12, "rest": 431730, "interest": 3357, "corpus": 3997, "eachPeriod": 7354},
    {"allPeriod": 176496, "period": 24, "rest": 383760, "interest": 3357, "corpus": 3997, "eachPeriod": 7354},
    {"allPeriod": 264744, "period": 36, "rest": 335790, "interest": 3357, "corpus": 3997, "eachPeriod": 7354}],
                             "highestPrice": [
                                 {"allPeriod": 95964, "period": 12, "rest": 469440, "interest": 3651, "corpus": 4346,
                                  "eachPeriod": 7997},
                                 {"allPeriod": 191928, "period": 24, "rest": 417280, "interest": 3651, "corpus": 4346,
                                  "eachPeriod": 7997},
                                 {"allPeriod": 287892, "period": 36, "rest": 365120, "interest": 3651, "corpus": 4346,
                                  "eachPeriod": 7997}]}, "interestPlan": {"lowestPrice": [
    {"allPeriod": 367212, "period": 12, "rest": 143910, "interest": 2619, "corpus": 27982, "eachPeriod": 30601},
    {"allPeriod": 398640, "period": 24, "rest": 143910, "interest": 2619, "corpus": 13991, "eachPeriod": 16610},
    {"allPeriod": 430056, "period": 36, "rest": 143910, "interest": 2619, "corpus": 9327, "eachPeriod": 11946}],
                                                                          "highestPrice": [
                                                                              {"allPeriod": 399276, "period": 12,
                                                                               "rest": 156480, "interest": 2847,
                                                                               "corpus": 30426, "eachPeriod": 33273},
                                                                              {"allPeriod": 433440, "period": 24,
                                                                               "rest": 156480, "interest": 2847,
                                                                               "corpus": 15213, "eachPeriod": 18060},
                                                                              {"allPeriod": 467604, "period": 36,
                                                                               "rest": 156480, "interest": 2847,
                                                                               "corpus": 10142, "eachPeriod": 12989}]},
     "registrationTime": "2017-01", "mileageTenThousandUnit": 38.0, "registrationYear": 2017, "registrationMonth": 1,
     "estimateTime": "2017-10-13T11:43:25.911265", "userMobile": "18245135693", "carBrand": "上喆汽车", "carSeries": "唯雅诺",
     "carType": "2015 款3.0L 自动 V62版", "mileage": "380000", "city": "北京", "carGood": "52.16", "carGeneral": "50.68",
     "carBad": "47.97", "purpose": "PURCHASE", "source": "HZ"}

c = '3.78'
print(float(c) * 10000)
